package com.cxy.entity;

import java.util.Set;

import javax.persistence.*;

/**
 * 角色实体
 * @author h
 *
 */
@Entity
@Table(name = "sys_role")
public class SysRole extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4536399549045577131L;

	@Column(name = "role_name")
	private String roleName; // 名称
	@Column(name = "role_create_date")
	private String createDate; // 创建日期
	@ManyToMany(mappedBy = "user_role")
	private Set<SysUser> role_user; //

	public SysRole() {

	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public Set<SysUser> getRole_user() {
		return role_user;
	}

	public void setRole_user(Set<SysUser> role_user) {
		this.role_user = role_user;
	}
	
}
